package com.gec.common;

import lombok.Data;

import java.util.List;

//识别结果
@Data
public class RecognitionResult {
 // 没有任何异常时，为 true
 private boolean successful;
 // 允许 empty 不允许 null；成功且为 empty 时即为无购物
private List<RecognitionItem> items;
 // 允许 empty 不允许 null
 private List<RecognitionException> exceptions;

 public RecognitionResult(boolean successful, List<RecognitionItem> items, List<RecognitionException> exceptions) {
  this.successful = successful;
  this.items = items;
  this.exceptions = exceptions;
 }

}